<?php

	class Container {

		protected static $instance;

		public static function setInstance($instance)
		{
			self::$instance = $instance;
		}

		public function getInstance()
		{
			return self::$instance;
		}


		public function getCurrent()
		{
			return $this;
		}


	}


	class Application extends Container 
	{

		public function run()
		{
			// static::setInstance($this);

			// return $this->getInstance();

			return $this->getCurrent();

		}

	}


	$app = new Application();
	var_dump($app->run());die;

?>